Fix rare aborts in bidi.c.
authorEli Zaretskii <eliz@gnu.org>
Mon, 11 Feb 2013 17:27:48 +0000 (19:27 +0200)
committerEli Zaretskii <eliz@gnu.org>
Mon, 11 Feb 2013 17:27:48 +0000 (19:27 +0200)
commite020a1ecf5cbc8a83ada7e0c5c6a58ec23642a5d
treea7aaf62e7b24b8b25cb0b2c178ba7d783d34c976
parent3122c5d74d235b4f73d8b72f51fb86eb3bee3705
Fix rare aborts in bidi.c.

 src/bidi.c (bidi_resolve_neutral): After finding the next
 non-neutral character, accept NEUTRAL_ON type as well, because
 directional control characters, such as LRE and RLE, have their
 type converted to that by bidi_resolve_weak.  This avoids aborts
 when LRE/RLE follows a run of neutrals.
 (bidi_move_to_visually_next): Assert that return value of
 bidi_peek_at_next_level is non-negative.  Negative values will
 cause an infloop.
src/ChangeLog
src/bidi.c